package com.allwees.bs.c.module.user.vo;

import com.allwees.bs.core.modelbase.constant.ErrorMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
//@ApiModel(value = "反馈")
public class FeedbackVo {
    @NotNull(message = ErrorMessage.PARAM_NOT_NULL)
//    @ApiModelProperty(value = "类型", required = true)
    private Integer type;

    //邮箱
    @NotNull(message = ErrorMessage.PARAM_NOT_NULL)
    @Length(min = 7, max = 50, message = ErrorMessage.PARAM_LENGTH_ERROR)
//    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    //内容
    @NotNull(message = ErrorMessage.PARAM_NOT_NULL)
    @Length(max = 5000, message = ErrorMessage.PARAM_LENGTH_ERROR)
//    @ApiModelProperty(value = "内容", required = true)
    private String content;

    //图片
    @Size(max = 5, message = ErrorMessage.PARAM_LENGTH_ERROR)
//    @ApiModelProperty(value = "图片")
    private String[] photos;
}
